package com.itheima.security.springboot.service.impl;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.itheima.security.springboot.dao.UserMapper;
import com.itheima.security.springboot.model.User;
import com.itheima.security.springboot.service.UserService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * @author xiaoxiaokui
 * @description: UserServiceImpl
 * @date 2019/11/19
 **/
@Service
public class UserServiceImpl extends ServiceImpl<UserMapper, User> implements UserService {

    @Autowired
    private UserMapper userMapper;

    @Override
    public List<String> findPermissionCodeListByUserId(String userId) {
        return userMapper.findPermissionCodeListByUserId(userId);
    }
}
